Maxima and Minima under the conditions